<template>
  <preview-item-loader v-bind="$props" v-on="$listeners">
    <el-button @click="btnClick">这是一个按钮</el-button>
  </preview-item-loader>
</template>

<script>
  import CompMixins from "@/mixins/CompMixins";
  import PreviewItemLoader from "@/components/PreviewItemLoader";

  export default {
    name: "CompButton",
    type: 'button',
    title: 'button',
    desc: '用于定义按钮',
    mixins: [CompMixins],
    components: { PreviewItemLoader },
    methods: {
      btnClick() {
        console.log(this.previewList, 'previewList')
        console.log(this.compIndex, 'compIndex')
        console.log(this.pCompIndex, 'pCompIndex')
      }
    }
  }
</script>
